
const IS_DEV = process.env.APP_VARIANT === 'development';
const IS_PREVIEW = process.env.APP_VARIANT === 'preview';
const getUniqueIdentifier = () => {
  if(IS_DEV) {
    return 'com.jimmy_jiang.ble_test.dev'
  }
  if(IS_PREVIEW) {
    return 'com.jimmy_jiang.ble_test.preview'
  }
  return 'com.jimmy_jiang.ble_test'
}
const getAppName = () => {
  if(IS_DEV) {
    return 'ble_test(Dev)'
  }
  if(IS_DEV) {
    return 'ble_test(Preview)'
  }
  return 'ble_test'
}
export default {
  "name": getAppName(),
  "slug": "ble_test",
  "version": "1.0.0",
  "orientation": "portrait",
  "icon": "./assets/images/icon.png",
  "scheme": "myapp",
  "userInterfaceStyle": "automatic",
  "newArchEnabled": true,
  "ios": {
    "supportsTablet": true
  },
  "android": {
    "adaptiveIcon": {
      "foregroundImage": "./assets/images/adaptive-icon.png",
      "backgroundColor": "#ffffff"
    },
    "permissions": [
      "android.permission.INTERNET",
      "android.permission.BLUETOOTH",
      "android.permission.ACCESS_FINE_LOCATION",
      "android.permission.ACCESS_COARSE_LOCATION",
      "android.permission.BLUETOOTH_ADMIN",
      "android.permission.BLUETOOTH_CONNECT",
      "android.permission.BLUETOOTH_SCAN",
      "android.permission.WAKE_LOCK",
      "android.permission.RECEIVE_BOOT_COMPLETED"
    ],
    "package": getUniqueIdentifier()
  },
  "web": {
    "bundler": "metro",
    "output": "static",
    "favicon": "./assets/images/favicon.png"
  },
  "plugins": [
    "expo-router",
    [
      "expo-splash-screen",
      {
        "image": "./assets/images/splash-icon.png",
        "imageWidth": 200,
        "resizeMode": "contain",
        "backgroundColor": "#ffffff"
      }
    ]
  ],
  "experiments": {
    "typedRoutes": true
  },
  "extra": {
    "eas": {
      "projectId": "a7d3d994-fe15-459c-919f-5ac26a87ac2a"
    }
  },
  "owner": "jimmy_jiang"
}
